import fetch from '@/utils/fetch';





export function exprotXls(ids,obj) {
    return fetch({
        url: `api/cb/flRegionalAnalysis/exprotXls/${ids}`,
        method: 'post',
        responseType: 'blob',
        data: obj
    })
  }

  // 导入Xlsx
export function importXls(obj) {
    return fetch({
      url: 'api/cb/flRegionalAnalysisWaterMeter/importXls',
      method: 'post',
      data: obj
    });
  }


// 说明：区域分析分页查询(条件搜索)
// 接口：api/cb/flRegionalAnalysis/search/{page}/{size}
// 请求类型：Post
export function searchFlRegionalAnalysis(page, size, obj) {
    return fetch({
        url: 'api/cb/flRegionalAnalysis/search/'+ page +'/'+ size,
        method: 'post',
        data: obj
    });
}

// 说明：区域分析中水表的数据

export function getFlRegionalAnalysis(communityCode) {
    return fetch({
        url: 'api/cb/flRegionalAnalysisWaterMeter/selectByCommunityCode/'+communityCode,
        method: 'get'
    })
}